import ytcarsPanel from '@/router/home/ytcars-panel';
const firstMenu = {
	'home': {
		icon: "#icon-settings-1",
		// icon: "#icon-settings",
		key: "control-panel"
	},
	'ytCars': {
		// icon: "#icon-settings-1",
		icon: "#icon-ytcar",
		key: "ytcars-panel"
	},
	'operatePanel': {//运营
		// icon: "#icon-vector",
		icon: "#icon-yunying",
		key: "operate-panel"
	},
	'moneyPanel': {//财务
		icon: "#icon-money-1",
		key: "money-panel"
	},
	'StatisticsPanel': {//统计
		icon: "#icon-graph-2",
		key: "statistics-panel"
	},
}
/* 
*1 设置
*3 sass架构
*4 平台管理员管理
*8 集团管理员管理
*12 主页
*45数据服务
*
*/
const home = {
	//1 设置
	'home': {
		path: '/home',
		name: 'home',
		redirect: '/home/control-panel/welcome',
		component: () => import(/* webpackChunkName: "home" */ '@/views/home/home.vue'),
		children: []
	},
	//3 sass架构
	'sass': {
		path: '/control-panel/sass',
		name: 'sass',
		component: () => import(/* webpackChunkName: "sass" */'@/views/home/control-panel/sass/sass.vue'),
		meta: {
			keepAlive: false
		}
	},
	//4 平台管理员管理
	'admin-control': {
		path: '/control-panel/admin-control',
		name: 'admin-control',
		component: () => import(/* webpackChunkName: "admin-control" */'@/views/home/control-panel/admin-control/admin-control.vue'),
		redirect: '/control-panel/admin-control/admin-list',
		meta: {
			keepAlive: true
		},
		children: [

		]
	},
	'admin-list': {
		path: '/control-panel/admin-control/admin-list',
		name: 'admin-list',
		component: () => import(/* webpackChunkName: "admin-list" */'@/views/home/control-panel/admin-control/admin-list.vue'),
		meta: {
			keepAlive: true
		}
	},
	//8 集团管理员管理
	'group-control': {
		path: `/control-panel/group-control`,
		name: 'group-control',
		component: () => import(/* webpackChunkName: "group-control" */'@/views/home/control-panel/group-control/group-control.vue'),
		meta: {
			keepAlive: false
		},
		children: [

		]
	},
	'group-list': {
		path: `/control-panel/group-control/group-list`,
		name: 'group-list',
		component: () => import(/* webpackChunkName: "group-list" */'@/views/home/control-panel/group-control/group-list.vue'),
		meta: {
			keepAlive: false
		}
	},
	//12 主页
	'welcome': {
		path: `/control-panel/welcome`,
		name: 'welcome',
		component: () => import(/* webpackChunkName: "welcome" */'@/views/home/control-panel/welcome/welcome.vue'),
		meta: {
			keepAlive: true
		}
	},
	//45数据服务
	'merchant-application-list':{
		path: `/control-panel/merchant-application-list`,
		name: 'merchant-application-list',
		component: () => import(/* webpackChunkName: "merchant-application-list" */'@/views/home/control-panel/merchant-application-list/tab-control.vue'),
		meta: {
			tabs: [{ label: '服务申请', name: 'application-list' }],
			keepAlive: false
		},
		redirect: `/control-panel/merchant-application-list/application-list`,
		children: []
	},
	'application-list':{
		path: `/control-panel/merchant-application-list/application-list`,
		name: 'application-list',
		component: () => import(/* webpackChunkName: "application-list" */'@/views/home/control-panel/merchant-application-list/application-list.vue')
	},
	'supplier-config':{ 
		path: `/control-panel/supplier-config`,
		name: 'supplier-config',
		component: () => import(/* webpackChunkName: "supplier-config" */'@/views/home/control-panel/supplier-config/tab-control.vue'),
		meta: {
			keepAlive: false
		},
		redirect:`/control-panel/supplier-config/application-list`,
		children:[]
	},
	'supplier-application-list':{ 
		path: `/control-panel/supplier-config/application-list`,
		name: 'supplier-application-list',
		component: () => import(/* webpackChunkName: "supplier-application-list" */'@/views/home/control-panel/supplier-config/application-list.vue')
	},
	'business-contract':{ 
		path: `/control-panel/business-contract`,
		name: 'business-contract',
		component: () => import(/* webpackChunkName: "business-contract" */'@/views/home/control-panel/business-contract/tab-control.vue'),
		redirect:`/control-panel/business-contract/config-management`,
		children:[]
	},
	'config-management':{ 
		path: `/control-panel/business-contract/config-management`,
		name: 'config-management',
		component: () => import(/* webpackChunkName: "config-management" */'@/views/home/control-panel/business-contract/config-management.vue'),
		meta: {
			keepAlive: false
		},
	},
	'contract-quality-management':{
		path: `/control-panel/data-service/business-contract/quality-management`,
		name: 'contract-quality-management',
		component: () => import(/* webpackChunkName: "contract-quality-management" */'@/views/home/control-panel/data-service/business-contract/quality-management.vue'),
		meta: {
			keepAlive: false
		}
	},
	'inspection-quality-company':{
		path: `/control-panel/data-service/business-contract/inspection-quality-management`,
		name: 'inspection-quality-company',
		component: () => import(/* webpackChunkName: "inspection-quality-company" */'@/views/home/control-panel/data-service/business-contract/inspection-quality-management.vue'),
		meta: {
			keepAlive: false
		}
	},	
	'business-talk':{ 
		path: `/control-panel/business-talk`,
		name: 'business-talk',
		component: () => import(/* webpackChunkName: "business-talk" */'@/views/home/control-panel/business-talk/tab-control.vue'),
		meta: {
			keepAlive: false
		},
		redirect:`/control-panel/business-talk/application-list`,
		children:[]
	},
	'business-config-management':{ 
		path: `/control-panel/business-talk`,
		name: 'business-config-management',
		component: () => import(/* webpackChunkName: "business-config-management" */'@/views/home/control-panel/business-talk/config-management.vue'),
		meta: {
			tabs:[{ label: '配置管理', name: 'business-config-management' }]
		}
	},
	'talk-quality-management':{
		path: `/control-panel/data-service/business-talk/quality-management`,
		name: 'talk-quality-management',
		component: () => import(/* webpackChunkName: "talk-quality-management" */'@/views/home/control-panel/data-service/business-talk/quality-management.vue'),
		meta: {
			keepAlive: false
		}
	},
	'check-apply-management':{
		path: `/control-panel/data-service/check-apply/apply-management`,
		name: 'check-apply-management',
		component: () => import(/* webpackChunkName: "check-apply-management" */'@/views/home/control-panel/data-service/check-apply/apply-management.vue'),
		meta: {
			keepAlive: false
		}
	},
	'line-configuration':{
		path: `/control-panel/data-service/line/configuration`,
		name: 'line-configuration',
		component: () => import(/* webpackChunkName: "line-configuration" */'@/views/home/control-panel/data-service/line/configuration.vue'),
		meta: {
			keepAlive: false
		}
	},
	'program-config':{ 
		path: `/control-panel/program-config`,
		name: 'program-config',
		component: () => import(/* webpackChunkName: "program-config" */'@/views/home/control-panel/program-config/tab-control.vue'),
		meta: {
			keepAlive: false
		},
		redirect:`/control-panel/program-config/config-management`,
		children:[]
	},
	'program-config-management':{ 
		path: `/control-panel/program-config/config-management`,
		name: 'program-config-management',
		component: () => import(/* webpackChunkName: "program-config-management" */'@/views/home/control-panel/program-config/config-management.vue')
	},
	'dmp':{ 
		path: `/control-panel/dmp`,
		name: 'dmp',
		component: () => import(/* webpackChunkName: "dmp" */'@/views/home/control-panel/dmp/tab-control.vue'),
		meta: {
			keepAlive: false
		},
		redirect:`/control-panel/dmp/config-management`,
		children:[]
	},
	'dmp-config-management':{ 
		path: `/control-panel/dmp/config-management`,
		name: 'dmp-config-management',
		component: () => import(/* webpackChunkName: "dmp-config-management" */'@/views/home/control-panel/dmp/config-management.vue')
	}
}



// const routerTable = Object.assign({},home)
const routerTable = Object.assign({},home,ytcarsPanel)
export default routerTable;
export const queryMenuInfo = (id) => {
	return firstMenu[id]
}